<?php
use yii\helpers\Html;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;
use yii\widgets\LinkPager;
use frontend\controllers\ListController;
use common\models\articles\Articles;
use common\models\member\Member;
use common\models\category\Category;
use common\models\Ad\AdPosition;
use common\models\Ad\Ad;
    $ycgg = Ad::find()->where(['position_id'=>20])->one();//公告广告
$this->title = 'SEARCH';
$this->params['breadcrumbs'][] = $this->title;
?><style>
    .page{
        zoom: 1;
        overflow: hidden;
    }
    .pagination{
        zoom:1;
        overflow: hidden;
        float:right;
    }
    .pagination li{
        border: 1px solid #cfcfcf;
        border-radius: 5px;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        padding: 3px 13px;
        margin: 0 2px;
        float: left;
    }
    .page a{
        border: none;
        padding: 0;
        margin: 0;
    }
    .page a:hover{
        border: 0;
    }
    .pagination .active{
        background: #a42023;
        color: #fff;
        border: 1px solid #a42023;
        border-radius: 5px;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
    }
    .pagination .active a{
        color: #fff;
    }
    .pagination li:hover{

    }
</style>

<!--content-->
<div class="content">
    <div class="w1113 bgd-ff mt10 mb10">
            <span class="abwz">
                YOUR LOCATION：<a href="<?= yii\helpers\Url::to(['/']);?>">HOME</a> > <a href="">SEARCH</a>
            </span>
    </div>
    <div class="w1113 bgd-ff">
        <div class="clearFloat pl20 pr20 pt15 pb50">
            <div class="abright floatRight">
                <div class="abrwidth">
                    <div class="clearFloat listwidt">
                        <h3 class="newh3">Search <span class="text-9b">"<?=$keywords;?>"</span>Result  <span class="segong">common <span class="text-9b"><?=$count;?></span>strip</span></h3>
                        <div class="clearFloat mt40 mb40">
                            <ul class="newul">
                        <?php foreach($articles as $k=>$t){ ?>
                                <li>
                                    <a href="<?= yii\helpers\Url::to(['search/searchcontent', 'id' => $t['id'],'keywords'=>$keywords]); ?>"><?=$t['title'];?></a><span><?= date('Y-m-d',$t['updated_at']);?></span>
                                </li>
                        <?php } ?>
                            </ul>

                            <div class="page mt50 mb10">
                                <?php if($page)
                                {
                                    echo LinkPager::widget([
                                        'maxButtonCount' => 6,
                                        'prevPageLabel' =>'First Prov',
                                        'nextPageLabel' =>'next',
                                        'pagination'=>$page,
                                    ]);
                                }
                                ?>
                            </div>
                        </div>

                    </div>
                </div>


            </div>
        </div>
    </div>
</div>
<!--content end-->